package org.delphy.indy2.containers.carbonPanelClasses
{
	import mx.containers.Canvas;

	/**
	*	Thickness of the border
	*	
	*	@default 1
	*/
	[Style(name="weight", type="Number", format="Length", inherit="no")]
	
	/**
	*	Top-left corner radius
	*	
	*	@default 12
	*/
	[Style(name="topLeftRadius", type="Number", format="Length", inherit="no")]

	/**
	*	Top-right corner radius
	*	
	*	@default 12
	*/
	[Style(name="topRightRadius", type="Number", format="Length", inherit="no")]
	
	/**
	*	Bottom-left corner radius
	*	
	*	@default 1
	*/
	[Style(name="bottomLeftRadius", type="Number", format="Length", inherit="no")]

	/**
	*	Bottom-right corner radius
	*	
	*	@default 1
	*/
	[Style(name="bottomRightRadius", type="Number", format="Length", inherit="no")]

	public class CarbonNullBorder extends Canvas implements ICarbonBorder
	{
		//--------------------------------------
		//  Variables
		//--------------------------------------
		
		/**
		 *	@protected
		 *	Default weight
		 *	
		 *	@default 1
		 */
		protected var _weight:Number=1;
		
		/**
		 *	@protected
		 *	Default top-left corner radius
		 *	
		 *	@default 12
		 */
		protected var _topLeftRadius:Number=12;
		
		/**
		 *	@protected
		 *	Default top-right corner radius
		 *	
		 *	@default 12
		 */
		protected var _topRightRadius:Number=12;
		
		/**
		 *	@protected
		 *	Default bottom-left corner radius
		 *	
		 *	@default 1
		 */
		protected var _bottomLeftRadius:Number=1;
		
		/**
		 *	@protected
		 *	Default bottom-right corner radius
		 *	
		 *	@default 1
		 */
		protected var _bottomRightRadius:Number=1;		
		
		public function CarbonNullBorder()
		{
			super();
			
			styleName="carbonNullBorderSkin";
		}
		
		/**
		 *	@public
		 */
		public function get weight():Number{
			return getStyle("weight") ? getStyle("weight") : _weight;
		}
		
		/**
		 *	@public
		 */
		public function get topLeftRadius():Number{
			return getStyle("topLeftRadius") ? getStyle("topLeftRadius") : _topLeftRadius;
		}
		
		/**
		 *	@public
		 */
		public function get topRightRadius():Number{
			return getStyle("topRightRadius") ? getStyle("topRightRadius") : _topRightRadius;
		}
		
		/**
		 *	@public
		 */
		public function get bottomLeftRadius():Number{
			return getStyle("bottomLeftRadius") ? getStyle("bottomLeftRadius") : _bottomLeftRadius;
		}
		
		/**
		 *	@public
		 */
		public function get bottomRightRadius():Number{
			return getStyle("bottomRightRadius") ? getStyle("bottomRightRadius") : _bottomRightRadius;
		}
		
		public function showHighlight():void
		{
		}
		
		public function hideHighlight():void
		{
		}
		
		public function playResizingAnimation():void
		{
		}
		
		public function stopResizingAnimation():void
		{
		}

		//--------------------------------------
		//  Implenmentation of ICarbonComponent
		//--------------------------------------
		/**
		 * @public
		 */
		public function get defaultStyleName():String{
			return "carbonPanelNullBorder";
		}

	}
}